<template>
    <view style="position: absolute;width: 100%;height: 100%;background-color: rgb(246,248,251);">
        <view class="nav">
            <view style="margin-top: 104rpx;display: flex;justify-content: center;align-items: center;">
                <image class="back" @click="back" src="https://www.diandianyouke.site:801/fileDataBase/static/stag/static/img/home_fanhui@3x.png" mode="" />
                <text>联系客服</text>
            </view>
            
        </view>
        <view class="top">
            <text style="font-size: 32rpx;font-weight: 700;color: rgb(48,49,51);">添加企业微信号<text style="color: rgb(255,55,71);">(推荐)</text></text>
            <image  @longpress="scanQRCode" :show-menu-by-longpress="true" class="img" src="https://www.diandianyouke.site:801/fileDataBase/static/stag/static/img/3db1b2bb719df8629ac98db3e709a3e.jpg"/>
            <text class="text">长按二维码,识别添加</text>
        </view>
        <view class="bottom">
            <image style="width: 32rpx;height: 32rpx;margin-right: 12rpx;" src="https://www.diandianyouke.site:801/fileDataBase/static/stag/static/img/icon_lxkfutel.png" mode="" />
            <text>客服电话：177 9004 1637</text>
        </view>
    </view>
</template>

<script setup lang="ts">

const back = () => {
    uni.navigateBack({ delta: 1 })
}
const scanQRCode = () => {
    uni.previewImage({
        urls: [],
        current:'https://www.diandianyouke.site:801/fileDataBase/static/stag/static/img/3db1b2bb719df8629ac98db3e709a3e.jpg',
        indicator:'default',
        loop:false,
        success: (result) => {
            console.log(result)
        },
        fail: (error) => {}
    })
}   
</script>

<style scoped>
.nav{
    width: 100%;
    height: 400rpx;
    background: url('https://www.diandianyouke.site:801/fileDataBase/static/stag/static/img/img_lxkfubg.png') no-repeat;
    background-size: 100% 100%;
    padding: 20rpx 32rpx;
    box-sizing: border-box;
    font-size: 36rpx;
    font-weight: 700;
    color: rgb(48,49,51);
    text-align: center;
    overflow: hidden;
}
.back{
    position: absolute;
    width: 48rpx;
    height: 48rpx;
    left: 32rpx;
    }
.top{
    width: 690rpx;
    height: 742rpx;
    position: absolute;
    top: 236rpx;
    left: 30rpx;
    border-radius: 16rpx;
    background-color: #fff;
    margin-bottom: 24rpx;
    padding: 30rpx;
    box-sizing: border-box;
    text-align: center;
    padding-top: 48rpx;
}
    .img{
        width: 520rpx;
        height: 520rpx;
        margin: 24rpx auto 6rpx;
    }
    .bottom{
        position: absolute;
        top: 1014rpx;
        left: 30rpx;
        width: 690rpx;
        height: 92rpx;
        box-sizing: border-box;
        background-color: #fff;
        padding: 24rpx;
        border-radius: 12rpx;
        display: flex;
    align-items: center;
    font-size: 30rpx;
    color: rgb(69,70,74);
    }
    .text{
        display: block;
        font-size: 14px;
        color: rgb(69,70,74);
        text-align: center;
    }
    .service{
        display: block;
        font-size: 16px;
        font-weight: 700;
        color: rgb(48,49,51);
        margin-bottom: 24rpx;
    }
</style>